<?php
/**
 * Author：小鱼
 * QQ:34734852
 * Wechat:34734852
 */
namespace Home\Controller;
use Think\Controller;

class IndexController extends ActionController {
    
    public function index(){
        $where=array('ad_classid'=>1);
        $this->assign('ad',$this->data('ad', $where, 'ad_id desc'));
        $this->assign('ad_top',$this->data('ad', array('ad_classid'=>2), 'ad_id desc','3'));
        $this->assign('pro_cate',$this->data('category', '', 'sort desc','10'));
        $this->assign('product',$this->data('goods', array('tuijian'=>1), 'date desc','8'));
        $this->assign('about',$this->one_data('news', array('n_type'=>0,'n_id'=>6)));
        $this->assign('news',$this->data('news', array('n_type'=>1), 'n_date desc'),'8');
       $this->display();
    }

}